package com.info33.platform.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.info33.platform.common.exception.TransactionalException;
import com.info33.platform.common.mvc.vo.Result;
import com.info33.platform.system.dao.SysDeptPostDao;
import com.info33.platform.system.dto.SysDeptPostDTO;
import com.info33.platform.system.entity.SysDeptPost;
import com.info33.platform.system.service.SysDeptPostService;
import com.info33.platform.system.vo.SysDeptPostVO;
import com.info33.platform.system.vo.SysUserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author admin
 */
@Service
public class SysDeptPostServiceImpl extends ServiceImpl<SysDeptPostDao, SysDeptPost> implements SysDeptPostService {

    @Autowired
    private SysDeptPostDao sysDeptPostDao;

    @Override
    public List<SysDeptPostVO> userInfo(Long uid, SysUserVO currentUser) {
        return sysDeptPostDao.userDept(uid, currentUser);
    }

}